package cn.tedu.qxhouserent.house.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@TableName("agent")
public class Agent implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;
    private String name;
    private String gender;
    private Integer age;
    private String idCard;
    private String phoneNumber;
    private String address;
    private LocalDate entryTime;
    private Integer enable;
    @JsonFormat(pattern = "yyyy年MM月dd日 HH：mm：ss",timezone = "GMT+8")
    private LocalDateTime gmtCreate;
    @JsonFormat(pattern = "yyyy年MM月dd日 HH：mm：ss",timezone = "GMT+8")
    private LocalDateTime gmtModified;
}
